<?php
//$string = 'Weekend  php';
///*
//$length = strlen($string);
//for ($i=($length-1) ; $i >= 0 ; $i--) {
  //echo $string[$i];
//}
////php dnekeeW
//*/
//$i=0;
//$newArr = array();
//while(isset($string[$i]))
//{
  //array_unshift($newArr,$string[$i]);
  //$i++;
//}
////print_r($newArr);
//echo implode($newArr);
//echo "\n\n";



$string = 'Weekend  php';
echo strstr($string, 'end');

